package com.rent.core.config;

import com.rent.common.config.BaseConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;


/**
 * @Author zhang
 * @create 2022/3/26 17:18
 */
@Slf4j
@Configuration
public class BeanConfig extends BaseConfig {


    // http请求调用Bean
    @Bean(name = "restTemplate")
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }


}
